#include"dao_gsl_permutation.h"

void Dao_Get_Object_Method( DaoCData *cd, DaoObject **ob, DaoRoutine **ro, const char *name )
{
  DValue va;
  if( cd == NULL ) return;
  *ob = DaoCData_GetObject( cd );
  if( *ob == NULL ) return;
  va = DaoObject_GetField( *ob, name );
  if( va.t == DAO_ROUTINE ) *ro = va.v.routine;
}

gsl_permutation* Dao_gsl_permutation_New()
{
	gsl_permutation *self = calloc( 1, sizeof(gsl_permutation) );
	return self;
}

